package com.shop.service;

import com.shop.entity.IndexImage;
import com.shop.mapper.IndexImageMapper;
import com.shop.model.vo.Rsp;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 首页轮播图(IndexImage)表服务接口
 *
 * @author makejava
 * @since 2020-11-22 13:12:13
 */
@Service
@AllArgsConstructor
public class IndexImageService {
    private final IndexImageMapper indexImageMapper;

    public Rsp getAll() {
        IndexImage indexImage=new IndexImage();
        indexImage.setImageUrl("http://qj7iwgvtd.hn-bkt.clouddn.com/1f0290bd-1318-41ea-80fd-c294d5ae7afb");
        List<IndexImage> list=new ArrayList<>();
        list.add(indexImage);
        list.add(indexImage);
        list.add(indexImage);
        return Rsp.success(list);
        // return Rsp.success(indexImageMapper.selectList(new QueryWrapper<IndexImage>().eq("status","0")));
    }
}